package com.itmayiedu.api.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 会员服务接口
 * @author: liucancan
 * @create: 2018-11-03 17:54
 **/
@RestController
public class MemberController {

    @Value("${server.port}")
    private int port;

    @RequestMapping("/getMember")
    public String getMember() {
        return "springcloud2.0会员服务" + port;
    }

    @RequestMapping("/")
    public String showMember() {
        return "我是会员服务" + port;
    }
}
